﻿<%@ Page Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YUIAspNetDemo.TabView.General" Title="Untitled Page" %>

<%@ Register Src="~/TabView/GetTime.ascx" TagName="GetTime" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : TabView : Usage info</title>
    <script type="text/javascript">
        function AfterTabCange(sender, args)
        {
            //alert("AfterTabCange");
            args.cancel = true;
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <h4>TabView</h4>
    
    <p>
        <yui:TabView OnClientAfterTabChange="AfterTabCange" ID="tab" runat="server">
            <Tabs>
                <yui:TabItem ID="tab1" runat="server" Text="Demo 1">
                    <ContentTemplate>Hello World!!!</ContentTemplate>
                </yui:TabItem>
                <yui:TabItem ID="tab2" runat="server" Active="true" Text="Demo 2">
                    <ContentTemplate>tab 2</ContentTemplate>
                </yui:TabItem>
                <yui:TabItem ID="tab3" runat="server" Text="Demo 3">
                    <ContentTemplate>tab 3</ContentTemplate>
                </yui:TabItem>
                <yui:TabItem ID="tab4" runat="server" Text="Demo User Control">
                    <ContentTemplate>
                        <uc:GetTime id="getttime" runat="server"></uc:GetTime>
                    </ContentTemplate>
                </yui:TabItem>
                <yui:TabItem ID="tab5" runat="server" Text="disabled tab" Enabled="false"></yui:TabItem>
            </Tabs>
        </yui:TabView>
    </p>
        
    <p><asp:Button ID="btn" runat="server" Text="Do postback!" /></p>
    
    <p>The SelectedTab is persisted across postbacks</p>
</asp:Content>
